#include<iostream>
#include<arpa/inet.h>
#include<unistd.h>
#include<sys/socket.h>
#include<sys/types.h>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<opencv2/opencv.hpp>
#include<opencv2/features2d/features2d.hpp>
#include<opencv2/highgui/highgui.hpp>
#include "Utility.h";
#define BUFLEN 1400
#define PORT 5002
#define PORTB 5003
using namespace std;
using namespace cv;

int main()
{
	int type,threshold;
	cout<<"Unicast (0) broadcast (1)"<<endl;
	cin>>type;
	cout<<"Threshold:"<<endl;
	cin>>threshold;
	if(type==0)
		unicast(threshold);
	else
		broadcast(threshold);
	return 0;
}
